#coding=gbk
import time
import queue

print(time.strftime("%Y-%m-%d-%H_%M_%S", time.localtime()))

read_file = open("tototo.txt", "r", encoding='utf-8')
write_file = open("totototo.txt", "a+", encoding='utf-8')

try:
    text_line = None
    schoolList=[]
    queueOne=queue.Queue()

    while True:
        text_line = read_file.readline()
        # print(text_line)
        if text_line:
            content=text_line.replace("\n","")
            line=content.split(",")

            l=len(line)

            if line[l-1]=="-":

                content=content.replace("-","-1")
            else:
                pass
            queueOne.put(content+"\n")
        else:
            break

    while queueOne.empty() != True:
        write_file.write(queueOne.get())


finally:
    write_file.close()
    read_file.close()






print(time.strftime("%Y-%m-%d-%H_%M_%S", time.localtime()))
